package taskTracker.util;

import java.io.DataOutputStream;
import java.io.IOException;

/**
 * An interface for serializable objects.
 * This means objects that can be written and read from data streams
 * @author aseldawy
 *
 */
public interface Serializable {
	/**
	 * Writes this object to the given {@link DataOutputStream}
	 * @param dos
	 */
	public void serialize(DataOutputStream dos) throws IOException;
	
	/**
	 * Fills object data from the given input stream.
	 * @param dis
	 */
	//public void deserialize(DataInputStream dis) throws IOException;
}
